import Vue from 'vue'
import App from './App.vue'
import router from "@/router"

Vue.config.productionTip = false
import './plugins/element.js'
import './assets/css/global.css'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';


// import { LoginAPI } from "@/api"
// const getToken = async () => {
//   const res = await LoginAPI({
//     username: 'admin',
//     password: '123456'
//   })
//   console.log(res)
// }
// getToken()
import * as echarts from 'echarts';
Vue.prototype.$echarts = echarts

import moment from 'moment'
Vue.filter('dateFormat', (val) => {
  return moment(val).format('YYYY-MM-DD')
})

import axios from 'axios'
Vue.prototype.$axios = axios

Vue.use(ElementUI);




import VueParticles from 'vue-particles'
Vue.use(VueParticles);


Vue.config.productionTip = false





new Vue({
 
  router,
  render: h => h(App),
}).$mount('#app')
